package com.fei.BYSJ.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/page")
public class PageController {
    /*@RequestMapping("/user/main")
    public String usermian(){
        System.out.println("++++++");
        return "/user/main";
    }*/

    @RequestMapping("/{str}")
    public String topage(@PathVariable String str){
        return str;
    }
    @RequestMapping("/{str1}/{str2}")
    public String gopage(@PathVariable String str1,@PathVariable String str2){
        return str1+"/"+str2;
    }


}
